Post

Replies

Boosts

Views

Activity

Comment on How is "Navigator" implemented in the session's video?
This doesn't really answer the question. I am aware what intents are for and how navigation works in SwiftUI. However in the WWDC Session from this year (10032) they clearly say it's possible. May not be recommended (which I also state in the first post), but it's possible. I just need to understand how the "Navigator" object is implemented so I can better understand how the "perform" method works in general.
Topic: App & System Services SubTopic: General Tags:
Oct ’23
Comment on Observation and MainActor
Regarding your first paragraph, no, OP does want @MainActor here. @MainActor means that all updates to the object will occur in the main thread. Any networking called within the @MainActor object can still take place in different threads, and the downloads themselves can take place somewhere else. Using @MainActor means their content will be delivered to the main thread, which is what you want with code that updates the UI. It does not mean async calls will take place in the main actor.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’23
Comment on [iOS 26] iOS App Does Not Receive Deep Link from Widget When Using widgetAccentedRenderingMode on Image
The documentation implies we should be able to use Link. https://developer.apple.com/documentation/widgetkit/linking-to-specific-app-scenes-from-your-widget-or-live-activity It also works well on System Large widgets, but not on System Medium.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’25
Comment on How is "Navigator" implemented in the session's video?
Perhaps the context of the question got lost because it wasn't tagged as wwdc2022-10032 when I opened the forums from the Developer app, my bad.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’23
Comment on How is "Navigator" implemented in the session's video?
This doesn't really answer the question. I am aware what intents are for and how navigation works in SwiftUI. However in the WWDC Session from this year (10032) they clearly say it's possible. May not be recommended (which I also state in the first post), but it's possible. I just need to understand how the "Navigator" object is implemented so I can better understand how the "perform" method works in general.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’23
Comment on Observation and MainActor
Regarding your first paragraph, no, OP does want @MainActor here. @MainActor means that all updates to the object will occur in the main thread. Any networking called within the @MainActor object can still take place in different threads, and the downloads themselves can take place somewhere else. Using @MainActor means their content will be delivered to the main thread, which is what you want with code that updates the UI. It does not mean async calls will take place in the main actor.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23